package command.command;

import command.entity.Door;

/**
 * @author 帅小伙
 * @date 2022/1/12
 * @description
 */
public class DoorOnCommand implements Command{

   Door door;

    public DoorOnCommand(Door door) {
        this.door = door;
    }

    @Override
    public void execute() {
        door.on();
    }

    @Override
    public void undo() {
        door.off();
    }
}
